﻿<UserControl x:Class="HeritageAcademy.Library.Controls.Navigator" 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:vm="clr-namespace:HeritageAcademy.Models.ViewModels;assembly=HeritageAcademy.Models"
  xmlns:Controls="clr-namespace:HeritageAcademy.Library.Controls" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  mc:Ignorable="d" 
  Background="{x:Null}" 
  d:DesignWidth="932.315" d:DesignHeight="725"
  >
  
    <UserControl.Resources>
        <!-- ShowBook -->
        <Storyboard x:Key="ShowBook" BeginTime="00:00:00">
            <!-- Library -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="0" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="-100" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="1" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.00" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:00.50" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- Book -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Course" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="100"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Course" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="0" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="1" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Course" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- Background -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.0" Storyboard.TargetName="CourseBackground" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.3" Value="1.0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <!-- ShowTestBoard -->
        <Storyboard x:Key="ShowTestBoard" BeginTime="00:00:00">
            <!-- Course details -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="0" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="-100" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="1" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.00" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:00.50" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- Test scroller -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestWizard" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="0" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="-100" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestWizard" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="1" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestWizard" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.00" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:00.50" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- TestBoard -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestBoard" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="100"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestBoard" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="0" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="1" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestBoard" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- Background -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.3" Storyboard.TargetName="CourseBackground" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.3" Value="0.0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <!-- ShowTestWizard -->
        <Storyboard x:Key="ShowTestWizard" BeginTime="00:00:00">
            <!-- TestBoard -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestBoard" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="0" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="-100" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestBoard" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="1" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestBoard" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.00" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:00.50" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- TestWizard -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestWizard" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="100"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestWizard" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="0" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="1" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestWizard" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- Background -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.0" Storyboard.TargetName="CourseBackground" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.3" Value="1.0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <!-- ShowCourseBoard -->
        <Storyboard x:Key="ShowCourseBoard" BeginTime="00:00:01">
            <!-- Library -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Library" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="0" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="-100" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Library" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="1" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Library" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.00" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:00.50" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- Book -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="100"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.00" Value="0" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.50" Value="1" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- TitleText -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TitleText" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.8" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <!-- Logo -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Logo" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.0" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <!-- LogoBox -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LogoBox" Storyboard.TargetProperty="Width">
                <SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="156" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.8" Value="34" KeySpline="0,1,1,1"/>
            </DoubleAnimationUsingKeyFrames>
            <!-- BackButton -->
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="BackButton" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.0" Value="{x:Static Visibility.Collapsed}"/>
                <DiscreteObjectKeyFrame KeyTime="00:00:00.4" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="BackButton" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.8" Value="1" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>        
        <!-- ShowLibrary -->
        <Storyboard x:Key="ShowLibrary">
            <!-- Library -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Library" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.30" Value="-100" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.80" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Library" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.30" Value="0" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.80" Value="1" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Library" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.30" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- Book -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Course" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.30" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.80" Value="100" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Course" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.30" Value="1" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.80" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Course" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.80" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- CourseBoards -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.30" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.80" Value="100" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.30" Value="1" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.80" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CourseDetails" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.80" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- TestBoard -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestBoard" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.30" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.80" Value="100" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestBoard" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.30" Value="1" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.80" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestBoard" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.80" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- TestWizard -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestWizard" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.30" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.80" Value="100" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestWizard" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.30" Value="1" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.80" Value="0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TestWizard" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.80" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <!-- Background -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00.3" Storyboard.TargetName="CourseBackground" Storyboard.TargetProperty="Opacity">
                <SplineDoubleKeyFrame KeyTime="00:00:00.3" Value="0.0" KeySpline="0,1,1,1" />
            </DoubleAnimationUsingKeyFrames>
            <!-- TitleText -->
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TitleText" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.0" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Logo" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.5" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.8" Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LogoBox" Storyboard.TargetProperty="Width">
                <SplineDoubleKeyFrame KeyTime="00:00:00.0" Value="34" />
                <SplineDoubleKeyFrame KeyTime="00:00:00.3" Value="156" KeySpline="0,1,1,1"/>
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="BackButton" Storyboard.TargetProperty="(UIElement.Visibility)" >
                <DiscreteObjectKeyFrame KeyTime="00:00:00.0" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="BackButton" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00.0" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    
    <Grid>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="50"/>
    		<RowDefinition/>
    	</Grid.RowDefinitions>
        
        <!-- Header -->
        <Grid x:Name="grdTop" HorizontalAlignment="Left" Margin="0" Height="50">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="40" />
            </Grid.ColumnDefinitions>
            
            <!-- Logo box -->
            <Border x:Name="LogoBox" Margin="0,0,0,0" Width="156" Background="{DynamicResource LogoBackgroundBrush}" HorizontalAlignment="Left" VerticalAlignment="Stretch">
                <Grid>
                    <Border HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0" x:Name="Logo">
                        <TextBlock Text="НАСЛЕДИЕ" Foreground="White" FontSize="20" />
                    </Border>
                    <Button x:Name="BackButton" Style="{DynamicResource InvisibleButton}" ToolTip="Вернуться в библиотеку" Visibility="Collapsed" Opacity="0" Click="BackButton_Click" >
                        <Path Data="{DynamicResource LeftArrow}" Fill="White" Width="8" Height="10" Stretch="Fill" Margin="-1,0,1,0" />
                    </Button>
                </Grid>
            </Border>
            
            <!-- Background -->
            <TextBlock x:Name="TitleText" FontFamily="{DynamicResource PrimaryFontFamily}" FontSize="13.333" Foreground="#FF909090" VerticalAlignment="Center" HorizontalAlignment="Left" IsHitTestVisible="False" d:LayoutOverrides="HorizontalAlignment" Opacity="0" Grid.Column="1" Margin="8,0,0,0" TextOptions.TextFormattingMode="Display">
                <Run x:Name="Title" />
            </TextBlock>
        </Grid>

        <!-- Background -->
        <Grid x:Name="grdBg" Margin="0" Grid.Row="1" d:IsHidden="True">
            <Border x:Name="LibraryBackground" Background="{DynamicResource LibraryBackgroundBrush}" />
            <Border x:Name="CourseBackground" Background="{DynamicResource BookBackgroundBrush}" Opacity="0"/>
        </Grid>
        
		<Controls:DetailsView x:Name="CourseDetails" d:LayoutOverrides="Width, Height" Visibility="Collapsed" Margin="0" Grid.Row="1" d:IsHidden="True">
            <Controls:DetailsView.RenderTransform>
                <TransformGroup>
                	<ScaleTransform/>
                	<SkewTransform/>
                	<RotateTransform/>
                	<TranslateTransform/>
                </TransformGroup>
            </Controls:DetailsView.RenderTransform>
        </Controls:DetailsView>

        <!-- Content -->
        <Controls:LibraryView x:Name="Library" Margin="0" Grid.Row="1" d:IsHidden="True">
            <Controls:LibraryView.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Controls:LibraryView.RenderTransform>
        </Controls:LibraryView>
		
        <Controls:ReadingView x:Name="Course" Visibility="Collapsed" Grid.Row="1">
            <Controls:ReadingView.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Controls:ReadingView.RenderTransform>
        </Controls:ReadingView>
        
		<Controls:TestBoard x:Name="TestBoard" Visibility="Collapsed" Grid.Row="1">
			<Controls:TestBoard.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Controls:TestBoard.RenderTransform>
		</Controls:TestBoard>
        
        <Controls:TestWizard x:Name="TestWizard" d:LayoutOverrides="Width" Visibility="Collapsed" Grid.Row="1">
            <Controls:TestWizard.RenderTransform>
                <TransformGroup>
                	<ScaleTransform/>
                	<SkewTransform/>
                	<RotateTransform/>
                	<TranslateTransform/>
                </TransformGroup>
            </Controls:TestWizard.RenderTransform>
        </Controls:TestWizard>
    </Grid>
</UserControl>
